import request from '@/utils/axios';
import appName from "../appName"

//保全任务查询
export function page(params) {
    return request({
        url: appName.TASK + '/cdfs/clm/task/page',
        method: 'post',
        data: params
    })
}
//理赔加锁
export function clmLock(taskno) {
    return request({
        url: appName.TASK + `/cdfs/lock/clmLock`,
        method: 'post',
        data: taskno
    })
}

//理赔解锁
export function clmUnlock(taskno) {
    return request({
        url: appName.TASK + `/cdfs/lock/clmUnLock`,
        method: 'post',
        data:  taskno
    })
}
//任务流转
export function clmExchangeNode(taskno, routeid) {
    return request({
        url: appName.TASK + `/cdfs/change/clmExchange`,
        method: 'post',
        data: {routeid: routeid, taskNos: taskno}
    })
}